Socket
Socket
Sign inDemoInstall

ipv6-normalize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipv6-normalize

ipv6-normalize


Version published
Weekly downloads
171K
increased by13.93%
Maintainers
1
Weekly downloads
 
Created
Source

ipv6-normalize

$ npm i --save ipv6-normalize

Extract bestPresentation function from URI.js/src/IPv6.js into independent module.

'use strict';

var assert = require('assert');
var n = require('./');

assert(n('2001:db8:0:0:0:0:cafe:1111') === '2001:db8::cafe:1111');
assert(n('2001:db8::a:1:2:3:4') === '2001:db8:0:a:1:2:3:4');
assert(n('2001:0DB8:AAAA:0000:0000:0000:0000:000C') === '2001:db8:aaaa::c');
assert(n('2001:db8::1:0:0:0:4') === '2001:db8:0:1::4');

License

The MIT License (MIT)

http://poying.mit-license.org/

FAQs

Package last updated on 22 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc